﻿using System;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.ServiceLocation;
using Microsoft.Practices.Unity;
using Acceron.University.Core.Imagings;
using HomeModuleAddin.Views;

namespace HomeModuleAddin
{
    public class HomeAddin : IModule
    {
       
        #region IModule Members

        /// <summary>
        /// Initializes the module.
        /// </summary>
        public void Initialize()
        {
            var regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
            regionManager.RegisterViewWithRegion("MyWorkRegion", typeof(TaskButtonView));

            var container = ServiceLocator.Current.GetInstance<IUnityContainer>();
            container.RegisterType<Object, DashboardRibbonTab>("DashboardRibbonTab");
            container.RegisterType<Object, DashboardControl>("DashboardControl");
        }
        #endregion
    }
}
